Do not accept empty definition of __XEN_INTERFACE_VERSION__
authorkaf24@firebug.cl.cam.ac.uk <kaf24@firebug.cl.cam.ac.uk>
Fri, 7 Apr 2006 08:57:36 +0000 (09:57 +0100)
committerkaf24@firebug.cl.cam.ac.uk <kaf24@firebug.cl.cam.ac.uk>
Fri, 7 Apr 2006 08:57:36 +0000 (09:57 +0100)
commitfa6aa0c4a4b046794a6e3fd47bc1b81e1c12783c
treef97eb195e4f26ebeddbea54ad15fe0e710587525
parent8dbed9810275bec1fb11a08bd18d925480640ee0
Do not accept empty definition of __XEN_INTERFACE_VERSION__
in xen-compat.h. It leads to building a broken kernel image
where the kernel sources end up using an unexpected interface
version. In the case of Linux, the kernel expects to use
the new sched_op() hypercall but ends up calling the
legacy hypercall -- this breaks poll, reboot, and save/restore.

A more acceptable patch would be to detect the empty
definition in xen-compat.h and give a reasonable #error message
to fail the build: the current error message is confusing.

Signed-off-by: Keir Fraser <keir@xensource.com>
xen/include/public/xen-compat.h